<?php


namespace App\Common;


class ApiErrorCode
{
    /**
     * API通用错误码
     * error_code < 1000
     */
    const SUCCESS = [0, 'Success'];
    const UNKNOWN_ERROR = [1, 'unknown_error'];
    const ERROR_URL = [2, 'error_url'];
    const TOKEN_EXPIRED = [3, 'token_expired'];
    const ERROR_PARAMS = [100, 'error_params'];

    /**
     * 用户登录相关错误码
     * error_code 1000 - 1100
     */
    const ERROR_PASSWORD = [1001, 'error_password'];
    const ERROR_TOKEN = [1002, 'error_token'];

}
